*mw_evolution.do	JEP		01/23/2015

* Builds figure with evolution of the minimum wage

*************************** Change log ********************************** 
/*

*/

clear 
version 13.1

* Project info
cap project, doinfo
if _rc==198 {
	if c(os)=="Unix" loc master "/home/jperez/AA_Minimum_Wage" 
 else if c(username)=="J16339" loc master "B:\Col_Minimum_Wage"
	else loc master "C:/Users/jorpp/Dropbox (Brown)/Col_Minimum_Wage"
	loc pr=0
}
else {
	local master "`r(pdir)'"
	local doname "`r(dofile)'" 	
	project, original("`master'/Data/Importable/MW/serie_salario_minimo_real.dta")
	loc pr=1
}

use "`master'/Data/Importable/MW/serie_salario_minimo_real.dta" , clear
tsset year
set scheme s1color
keep if year<=2006
twoway (line indice year, lcolor(black) lpattern(solid)) (line delta year, yaxis(2) lcolor(cranberry) lpattern(dash)) , xtitle(Year) xlabel(1991(2)2005, angle(horizontal) noticks) xline(1999, lcolor(cranberry)) legend(label(1 "Index") label(2 "Change in index (secondary axis)")) ytitle("Index", axis(1)) ytitle("Difference", axis(2)) yline(0, lpattern(solid) lcolor(black) axis(2)) bgcolor(white) ylab(,noticks angle(horizontal)) ylab(, axis(2) noticks angle(horizontal))

graph export "`master'/Doc/slides_lacea/fig/mw.eps", replace
! epstopdf "`master'/Doc/slides_lacea/fig/mw.eps"
erase "`master'/Doc/slides_lacea/fig/mw.eps"

graph export "`master'/Doc/third_year/fig/mw.eps", replace
! epstopdf "`master'/Doc/third_year/fig/mw.eps"
erase "`master'/Doc/third_year/fig/mw.eps""


if `pr' project, creates("`master'/Doc/slides_lacea/fig/mw.pdf")
if `pr' project, creates("`master'/Doc/third_year/fig/mw.pdf")

